package com.cn.designpatterns.ex.concrete.visitor.people.visitor;

import com.cn.designpatterns.ex.concrete.visitor.people.visitor.concrete.Park;
import com.cn.designpatterns.ex.concrete.visitor.people.visitor.concrete.ParkA;
import com.cn.designpatterns.ex.concrete.visitor.people.visitor.concrete.ParkB;

/**
 * @author zhangyi
 * @date 2018/12/25 14:04
 */
public class User2 implements Visitor {
    @Override
    public void visitor(Park park) {
        System.out.println("用户2访问");
    }

    @Override
    public void visitor(ParkA parkA) {
        System.out.println("用户2访问");
    }

    @Override
    public void visitor(ParkB parkB) {
        System.out.println("用户2访问");
    }
}
